home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / -archivi / -recent2 / cgxv42_r1.lha / CGXV4_Update next >
Text File  |  1999-03-15  |  28KB  |  578 lines

  1. ;*****************************************************************************
  2. ;    ______        __                  ______                     __  __   __
  3. ;   / __  /       / /                 / __  /      Update        / /  \ \ / /
  4. ;  / /  -'__  __ / /___ ______ _____ / /_ -'_____ ______ ______ / /__  \ \ /
  5. ; / /     \ \/ // __  // ____// .__// // \ / .__// __  // __  // __  / /  / V4
  6. ;/ /___    \  // /_/ // __/_ / /   / /_/ // /   / __  // /_/ // / / / / \ \
  7. ;\____/    / //_____//_____//_/   /_____//_/   /_/ /_// ____//_/ /_/ /_/ \_\
  8. ;         /_/                                        / /
  9. ; S3           : CyberVision64/3D, CyberVision64
  10. ; Cirrus Logic : Picasso II, Picasso II+, Picasso IV, Spectrum 
  11. ;                 Piccolo, Piccolo SD64, Inferno
  12. ; Symbios (NCR): Retina BLT Z3,  DraCoAltais
  13. ; Texas Inst.  : CyberVisionPPC (Permedia), BlizzardVisionPPC (Permedia) 
  14. ;          
  15. ; CyberGraphX V4 ©1998, 1999 Vision Factory Development
  16. ; CyberGraphX V4 Installer ©1995,1996,1997,1998,1999 by Robert C. Reiswig 
  17. ; $VER: V0.65e (March-04-1999)
  18. ; If you wish to use any part of this installer you must ask. May not be 
  19. ; integrated/placed into any other package! You may NOT change this in an way!
  20. ; You man NOT take or use the ENV definitions and use them without direct
  21. ; permission from me! Changes, suggestions or problems: vgr@best.com
  22. ;********************************************************************************
  23.  
  24.  
  25.  
  26. ;********************************************************************************
  27. ; Cyber Release & Boards
  28. ;********************************************************************************
  29. (set @user-level 2)
  30. (set #cyberver "V4 42.1")
  31. (set NoBoard 0)
  32. (set whereback "SYS:Storage")
  33.  
  34. (message (cat "CyberGraphX " #cyberver "\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n"
  35.               "CyberVisionPPC & BlizzardVisionPPC\n\nCyberVision64/3D & CyberVision64\n\n"
  36.               "Picasso II(+) & Picasso IV & Inferno\n\n"
  37.               "Piccolo & Piccolo SD64 & Spectrum 28/24\n\nRetina BLT Z3 & DraCoAltais"
  38.          )
  39. )
  40.  
  41. (welcome)
  42. ;********************************************************************************
  43. ; Read All System information
  44. ;********************************************************************************
  45. (set cpu (database "cpu")) (if (> (exists ("sys:libs/68060.library")) 0) (set cpu "68060") )
  46. (set vblank (database "vblank")) (set graphmem (database "graphics-mem"))
  47. (set totmem (database "total-mem")) (set osver (/ (getversion "LIBS:version.library") 65536))
  48. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  49. (set fastmem (- totmem graphmem))
  50. ( if (= osver 37) ( (set workbench "2.0")) ( if (= osver 38) ( (set workbench "2.1"))
  51. ( if (= osver 39) ( (set workbench "3.0")) ( if (= osver 40) ( (set workbench "3.1"))
  52. ( if (= osver 41) ( (set workbench "3.2")) )))))
  53. (set cgx_root "CGraphX4")  (if (= 2 (exists "CGraphX41" (noreq)))  (set cgx_root "CGraphX41"))
  54. (set diskname "CyberGraphX_4")
  55. (set spatchbin (tackon cgx_root "tools/spatch"))
  56. (set tempdir "ram:CGX_V4_Temp1") (makedir tempdir)
  57. (askdisk (dest diskname) (prompt #needcd) (help #needcd) )
  58. ;;(set cgx_root (tackon (cat diskname ":") cgx_root))
  59. (set cd_root "CGraphX4")
  60.  
  61. (set pick 0)
  62.  
  63. ;********************************************************************************
  64. ;English Strings
  65. ;********************************************************************************
  66. (set #askzorro "\nWhat type of machine is CyberGraphX V4 installed on?\n")
  67. (set #askcpu "\nWhat CPU does the machine have that you are updating CyberGraphX V4 on? The installer has found:\n")
  68. (set #wherelibs "Where are your CyberGraphX V4 libraries located? The default is 'SYS:Libs'")
  69. (set #todo-prompt "\nDo you wish to install:\n")
  70. (set #cgxmode-todo " CGXMode - Create & Change Screen Modes")
  71. (set #wheremode "Where do you wish to copy the CGXMode Program?")
  72. (set #whereshowcgxconfig "Where do you wish to copy the ShowCGXconfig Program?")
  73. (set #showcgxconfig " ShowCGXconfig - CGX Info Program")
  74.  
  75. ;*********** NEW English Strings:  Monday 01-Dec-97 *************************
  76. (set #nocgxmode "\n\nOne of the graphic card(s) you selected does not currently support the use of CGXMode.\n\nA2410 or AGA(PPC)\n\nCGXMode can be use with all of the other CyberGraphX supported cards!")
  77.  
  78. ;*********** NEW English Strings:  Wednesday 21-Jan-98 **********************
  79. (set #updatep4flash "\nTo use CyberGraphX with the Picasso IV you should be running version 2.0 or greater of the Picasso IV FlashROM.\n\nThe installer has found a version lower then 2.0.\n\nForm more information and newer FlashROMs you can contact:\nYour Dealer\nVillage Tronic\nVillage Tronic Web site\n")
  80.  
  81. ;*********** NEW English Strings:  Wednesday 11-Mar-98 **********************
  82. (set #noppc1 "\n\nYou selected the PPC option for one of your CPUs. The installer did not find the 'libs:PPC.library'.\n\nCyberGraphX may not work correctly.\n\n Do you wish to reselect the CPU type?")
  83. (set #noppcaga "\nYou selected the 'AGA (PPC Only)' option when picking what graphics card (display device) to use with CyberGraphX. The installer did not find the 'libs:PPC.library'.\n\n The AGACGX driver needs a PPC card installed to work correctly.\n\nDo you wish to Abort the install now?.")
  84. (set #agaquit "\nCyberGraphX install/update exiting.")
  85.  
  86. ;*********** NEW English Strings:  Thursday 22-Oct-98 **********************
  87. (set #needcd "\n\n\nPlease place your CyberGraphX V4 CDROM into your CDROM drive to continue.")
  88. (set #nobackup "\n\nThis installer will copy the correct new V4 Libs and Monitor to the correct places. It will also upgrade a _working_ V3 system to a V4 system. It does not do any back up currently.\n\nThis will not install V4 for the first time, it just _updates_ or _upgrades_ a CGX V3/V4 system.")
  89. (set #whatboard (cat "Please Select the Graphics Board you wish to update CyberGraphX Monitor File for. (*=Not Supported)"))
  90. (set #guide " CGX Docs - AmigaGuide file")
  91. (set #commy " CyberGraphX - Settings Tool")
  92. (set #wheredocs "Where do you wish to install the CGX AmigaGuide file?")
  93. (set #wherecomm "Where do you wish to install the CGX Settings Tool?")
  94. (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n"
  95.               "©1998-1999 by:\n\nVision Factory Development"
  96.           
  97.          )
  98. )
  99.  
  100. ;*********** NEW English Strings:  Sunday 21-Feb-99 14:35:46 **********************
  101. (set #workingpatching "\nCurrently patching the file:\n\n")
  102. (set #spatcherror1 "\n\nspatch has returned an error. Please read the error message in the 'spatch' window.\n\nspatch does not return the type of error back to the installer so you must read its error.\n\n The installer will let you continue but the CGX V4 install my not be complete, your base files may be bad.")
  103.  
  104. ;********************************************************************************
  105. ;German Strings by the King!
  106. ;********************************************************************************
  107. (if (= @language "deutsch")
  108. (
  109.  (set #nobackup "\n\nDieses Installationsskript kopiert die neuen V4 Bibliotheken und Monitore in die entsprechenden Verzeichnisse. Es wird keine Sicherung vorgenommen.\n\nEs ist keine V4 Erstinstallation, das V4 System wird nur _erneuert_ . Ein V2->V4 Update ist aber bereits in Arbeit.")
  110.  (set #askzorro "\nWelche Erweiterungsslots besitzt der Computer, auf dem Sie CyberGraphX V4 installieren ?\n")
  111.  (set #askcpu "\nWelchen Prozessor besitzt der Computer, auf dem Sie CyberGraphX V4 installieren wollen ? Der installer hat folgendes gefunden:\n")
  112.  (set #wherelibs "Wo befinden sich die CyberGraphX V4 Bibliotheken ? Standard ist 'SYS:Libs'")
  113.  (set #whatboard (cat "Bitte wählen Sie die Grafikkarte, deren CyberGraphX Monitordatei erneuern wollen:"))
  114.  (set #todo-prompt "\nWelches der folgenden Programme wollen Sie installieren: ?\n")
  115.  (set #cgxmode-todo " CGXMode - Erstellen & Ändern von Bildschirmmodis")
  116.  (set #wheremode "Wohin wollen Sie das CGXMode Programm kopiert haben?")
  117.  (set #whereshowcgxconfig "Wohin wollen Sie das ShowCGXconfig Programm kopiert haben?")
  118.  (set #showcgxconfig " ShowCGXconfig - CyberGraphX Informationsprogramm")
  119.  
  120. ;*********** NEW German Strings:  Monday 01-Dec-97 *************************
  121.  (set #nocgxmode "\n\nEine/Mehrere Grafikkarte(n), die Sie ausgewählt haben, wird/werden von CGXMode momentan nicht unterstützt.\n\nA2410 oder AGA(PPC)\n\nCGXMode kann mit allen anderen Karten, die CyberGraphX unterstützt, jedoch benutzt werden!")
  122.  
  123. ;*********** NEW German Strings:  Wednesday 11-Mar-98 **********************
  124.  (set #noppc1 "\n\nYou selected the PPC option for one of your CPUs. The installer did not find the 'libs:PPC.library'.\n\nCyberGraphX may not work correctly.\n\n Do you wish to reselect the CPU type?")
  125.  (set #noppcaga "\nYou selected the 'AGA (PPC Only)' option when picking what graphics card (display device) to use with CyberGraphX. The installer did not find the 'libs:PPC.library'.\n\n The AGACGX driver needs a PPC card installed to work correctly.\n\nDo you wish to Abort the install now?.")
  126.  (set #agaquit "\nCyberGraphX Installation/Erneuerung endet.")
  127.  
  128. ;*********** NEW German Strings:  Wednesday 21-Jan-98 **********************
  129.  (set #updatep4flash "\nUm CyberGraphX3 mit der PicassoIV zu benutzen, sollten sie auf jeden Fall die Version 2.0 oder größer des PicassoIV FlashROMs installieren.\n\nDas Installationsskript entdeckte eine ältere Version.\n\nFür weitere Informationen und eine neuere FlashROM Version kontaktieren Sie bitte:\nIhren Händler\nVillageTronic\ndie VillageTronic WWW Seite\n")
  130.  
  131. ;*********** NEW German Strings:  Thursday 22-Oct-98 **********************
  132.  (set #needcd "\n\n\nBitte legen Sie die CyberGraphX V4 CDROM in das CDROM Laufwerk ein, um fortzufahren.")
  133.  (set #nobackup "\n\nDieses Installationsskript kopiert die neuen V4 Bibliotheken and Monitortreiber in die entsprechenden Verzeichnisse. Es erneuert ebenso ein _vorhandenes_ V3 System auf V4. Es wird keine Sicherung der alten Dateien vorgenommen.\n\nDieses Skript kann nicht zur Erstinstallation verwendet werden, es _erneuert_ lediglich ein CGX V3/V4 System.")
  134.  (set #whatboard (cat "Bitte wählen Sie die Grafikkarte, deren CyberGraphX Monitortreiber Sie erneuern wollen. (*=Nicht unterstützt)"))
  135.  (set #guide " CGX Dokumentation - AmigaGuide Datei")
  136.  (set #commy " CyberGraphX - Einstellungs-Commodity")
  137.  (set #wheredocs "Wohin wollen Sie die CyberGraphX4 AmigaGuide Dokumentation installieren ?") 
  138.  (set #wherecomm "Wohin wollen Sie das CyberGraphX Commodity installieren ?")
  139.  (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n"
  140.               "©1998-1999 by:\n\nVision Factory Development"
  141.           )
  142.  )
  143.  
  144. ;*********** NEW German Strings:  Sunday 21-Feb-99 14:35:46 **********************
  145. (set #workingpatching "\nMomentan bearbeitete Datei:\n\n")
  146. (set #spatcherror1 "\n\nspatch lieferte einen Fehler. Bitte lesen Sie die Fehlermeldung im 'spatch' Fenster.\n\nspatch lieferte keinen konkreten Fehlertyp.\n\n Das Installationsskript von CGX V4 kann fortgesetzt werden, aber die Installation ist dann möglicherweise unvollständig.")
  147.  
  148. )
  149. )
  150.  
  151. ;********************************************************************************
  152. ; French Strings by Gregory Eycken <geycken@geocities.com>
  153. ;********************************************************************************
  154. (if (= @language "français")
  155. (
  156.  (set #nobackup "\n\nCe script d'installation va copier les nouvelles bibliothèques et les nouveaux moniteurs de CyberGraphX V4 aux endroits adéquats. Il n'effectuera aucun archivage.\n\nCe script n'est pas prévu pour installer CyberGraphX V4 pour la première fois, il ne peut faire que la _mise à jour_ d'un système CyberGraphX V4 existant.\nUne mise à jour V2->V4 est à l'étude.")
  157.  (set #askzorro "\nSur quel type d'ordinateur CyberGraphX V4 est-il installé?\n")
  158.  (set #askcpu "\nQuel est le processeur de l'ordinateur sur lequel vous voulez mettre à jour CyberGraphX V4? L'installeur a trouvé :\n")
  159.  (set #wherelibs "Où sont installées les bibliothèques de CyberGraphX V4? Par défaut, c'est 'SYS:Libs'.")
  160.  (set #whatboard (cat "Veuillez sélectionner la carte graphique dont vous voulez mettre le fichier moniteur à jour :"))
  161.  (set #todo-prompt "\nDésirez-vous installer :\n")
  162.  (set #cgxmode-todo " CGXMode - Créer et modifier les modes d'écran")
  163.  (set #wheremode "Où désirez-vous installer le programme CGXMode?")
  164.  (set #whereshowcgxconfig "Où désirez-vous installer le programme ShowCGXconfig?")
  165.  (set #showcgxconfig " ShowCGXconfig - Programme d'informations CyberGraphX")
  166. )
  167. )
  168.  
  169. ;********************************************************************************
  170. ; Start Update
  171. ;********************************************************************************
  172. (askdisk (dest "CyberGraphX_4") (prompt #needcd) (help #needcd) )
  173. (message #by)
  174. (message #nobackup)
  175.  
  176.  
  177. ;*******************************************************************
  178. ; ASK what board to update
  179. ;*******************************************************************
  180. (set BGuess 0) (set AGA 0)
  181.  
  182. (if (> (exists ("devs:monitors/CVisionPPC")) 0)  (set BGuess (+ BGuess 1)) )
  183. (if (> (exists ("devs:monitors/CVision3D")) 0)   (set BGuess (+ BGuess 2)) )
  184. (if (> (exists ("devs:monitors/CVision64")) 0)   (set BGuess (+ BGuess 4)) )
  185. (if (> (exists ("devs:monitors/PicassoII")) 0)   (set BGuess (+ BGuess 8)) )
  186. (if (> (exists ("devs:monitors/Spectrum")) 0)    (set BGuess (+ BGuess 16)) )
  187. (if (> (exists ("devs:monitors/Piccolo")) 0)     (set BGuess (+ BGuess 32)) )
  188. (if (> (exists ("devs:monitors/PiccoSD64")) 0)   (set BGuess (+ BGuess 64)) )
  189. (if (> (exists ("devs:monitors/Inferno")) 0)     (set BGuess (+ BGuess 128)) )
  190. (if (> (exists ("devs:monitors/PicassoIV")) 0)   (set BGuess (+ BGuess 256)) )
  191. (if (> (exists ("devs:monitors/RetinaZ3")) 0)    (set BGuess (+ BGuess 512)) )
  192. (if (> (exists ("devs:monitors/DraCoAltais")) 0) (set BGuess (+ BGuess 1024)) )
  193. (if (> (exists ("devs:monitors/BVisionPPC")) 0)  (set BGuess (+ BGuess 2048)) )
  194. (if (> (exists ("devs:monitors/Pixel64")) 0)     (set BGuess (+ BGuess 4096)) )
  195.  
  196.   (set board (askoptions (choices  " CyberVisionPPC" " CyberVision64/3D" " CyberVision64" " PicassoII(+)" " Spectrum"
  197.                                    " Piccolo" " Piccolo SD64" " Inferno" " Picasso IV" " Retina BLT Z3"  " DraCoAltais" 
  198.                                    " BlizzardVisionPPC" ;; " Pixel64"  ;; " AGA (PPC Only)" " A2410"
  199.                           (prompt #whatboard)
  200.                       (help #whatboard)
  201.                           (default BGuess)
  202.                          )
  203.              )     
  204.   )
  205.  
  206. ;********************************************************************
  207. ; Double Check on the CPU
  208. ;********************************************************************
  209. (procedure askaboutcpu
  210.  
  211. (set cpu (database "cpu"))
  212. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0))
  213. (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0))
  214. (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68060) (set #cpu 1)) 
  215. (if (= @installer-version 0)
  216.   (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) )
  217.   (if (= cpu 68060) (set #cpu 1))
  218. )
  219. ;;(if (> (exists ("libs:PPC.library")) 0) (set #cpu 2) )
  220.  
  221. (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060") ; "PPC with 68040 or 68060")
  222.             (prompt #askcpu)
  223.                     (help   #askcpu)
  224.                   (default #cpu)
  225.       )
  226. )
  227.  
  228. (if (= cpuPick 0) ((set cpuadd ".020") (set cpuadd-1 ".020")) ) 
  229. (if (= cpuPick 1) ((set cpuadd ".040") (set cpuadd-1 ".040")) )
  230. ;;(if (= cpuPick 2) ((set cpuadd ".040") (set cpuadd-1 ".ppc")) )
  231.  
  232. ); END askaboutcpu
  233.  
  234. (askaboutcpu)
  235.  
  236. ;*******************************************************************
  237. ; Check on PPC
  238. ;*******************************************************************
  239. ;(set redocpu 0)
  240. ;(if (AND (= (exists ("libs:PPC.library")) 0) (= cpuPick 2)) 
  241. ; (set redocpu     (askbool (prompt #noppc1)
  242. ;               (help   #noppc1)
  243. ;                   
  244. ;              )
  245. ; )
  246. ;)
  247.  
  248. ;(if (= redocpu 1) (askaboutcpu))
  249.  
  250. ;(set agaquit 0)
  251. ;(if (AND (= (exists ("libs:PPC.library")) 0) (IN board 8)) 
  252. ; (set agaquit     (askbool (prompt #noppcaga)
  253. ;               (help   #noppcaga)
  254. ;                   
  255. ;              )
  256. ; )
  257. ;)
  258.  
  259. ;(if (= agaquit 1) (abort #agaquit))
  260.  
  261.  
  262. ;*******************************************************************
  263. ;  ASK where cybergfx libs are
  264. ;*******************************************************************
  265. (set wherelibs   (askdir (prompt #wherelibs)
  266.              (help   #wherelibs)
  267.                   (default "SYS:Libs")
  268.          )
  269. )
  270.  
  271. ;*******************************************************************
  272. ;  Spatch Crap PROCEDURE
  273. ;*******************************************************************
  274. (procedure spatch
  275.  (set todo (cat spatchbin " \"-p" pch_file "\" " "\"-o" (tackon tempdir pch_out) "\"" " \"" pch_in "\""))
  276.  (working (cat #workingpatching pch_file)) 
  277.  (set err (run todo))
  278.  (if (> err 0) (message #spatcherror1) )
  279. )
  280.  
  281. ;*******************************************************************
  282. ;  Copy libs PROCEDURE
  283. ;*******************************************************************
  284. (procedure copy_lib
  285.   (set pch_file (tackon cgx_root (tackon Libs_Dir (cat Libs_Name CPU_name ".pch"))))
  286.    (if (exists pch_file)
  287.      ( 
  288.       (set pch_in  (tackon (tackon (cat diskname ":") cd_root) (cat (tackon Libs_Dir Libs_Name) CPU_name)) )
  289.       (set pch_out (tackon tempdir (cat Libs_Name CPU_name)))   (spatch)
  290.       (set file_dir tempdir)
  291.      )
  292.  
  293.      (set file_dir (tackon cgx_root Libs_Dir))
  294.    )
  295.   (if (exists (tackon file_dir (cat Libs_Name CPU_name)))
  296.     (copyfiles (source (tackon file_dir (cat Libs_Name CPU_name))) (dest wherelibs) (newname Libs_Name) (optional "nofail") ) 
  297.   )
  298. )
  299.  
  300. ;*******************************************************************
  301. ;  Copy libs if there
  302. ;*******************************************************************
  303. (set Libs_Dir "cgxsystemlib") (set Libs_Name "cgxsystem.library") (set CPU_name cpuadd-1) (copy_lib)
  304. (set Libs_Dir "cgxmpeglib") (set Libs_Name "cgxmpeg.library") (set CPU_name cpuadd-1) (copy_lib)
  305. (set Libs_Dir "cgxbootpiclib") (set Libs_Name "cgxbootpic.library") (set CPU_name "") (copy_lib)
  306.  
  307. ;*******************************************************************
  308. ;  Copy monitor/driver PROCEDURE
  309. ;*******************************************************************
  310. (procedure copy_monitor
  311.   (set RootPatchFileName Driver_Name)
  312.   (if (= Driver_Name "BVisionPPC") (set RootPatchFileName "CVisionPPC"))
  313.   (if (= Driver_Name "DraCoAltais") (set RootPatchFileName "RetinaZ3"))
  314.  
  315.   (set pch_file (tackon cgx_root (tackon Driver_Dir (cat Driver_Name Z_name ".pch"))))
  316.    (if (exists pch_file)
  317.      ( 
  318.       (set pch_in  (tackon (tackon (cat diskname ":") cd_root) (cat (tackon Driver_Dir RootPatchFileName) Z_name)) )
  319.       (set pch_out (tackon tempdir (cat Driver_Name Z_name)))   (spatch)
  320.       (set file_dir tempdir)
  321.      )
  322.  
  323.      (set file_dir (tackon cgx_root Driver_Dir))
  324.    )
  325.  
  326.   (if (exists (tackon file_dir (cat Driver_Name Z_name)))
  327.    (if (= (exists (tackon "devs:monitors" (cat Driver_Name ".info"))) 0)
  328.      (copyfiles (source (tackon file_dir (cat Driver_Name Z_name))) (dest "devs:monitors") (newname Driver_Name) (infos) (optional "nofail") ) 
  329.      (copyfiles (source (tackon file_dir (cat Driver_Name Z_name))) (dest "devs:monitors") (newname Driver_Name) (optional "nofail") ) 
  330.    )
  331.   )
  332. )
  333.  
  334. ;*******************************************************************
  335. ;  Install monitor file and handle extra libs 
  336. ;*******************************************************************
  337. (if (IN board 0) 
  338.  (
  339.   (set Driver_Dir "TIDrivers") (set Driver_Name "CVisionPPC") (set Z_name "") (copy_monitor)
  340.   (set Libs_Dir "cgx3dravelib") (set Libs_Name "cgx3drave.library") (set CPU_name "") (copy_lib)
  341.  )
  342. )
  343.  
  344. (if (IN board 1)
  345.   (
  346.    (set error (run (tackon cgx_root "tools/ChkCV3DZorro")))
  347.    (if (= error 0) (set guessZ 1) (set guessZ 0) )
  348.  
  349.    (set pickZ (askchoice (choices "zorro2 - Amiga 2000/zorro2 Expansion Box" "zorro3 - Amiga 3000(T)/4000(T)")
  350.                          (prompt #askzorro)
  351.                      (help   #askzorro)
  352.                          (default guessZ)
  353.               )
  354.    )
  355.   
  356.    (if (= pickZ 0) (set zadd ".Z2"))   (if (= pickZ 1) (set zadd ".Z3")) 
  357.  
  358.    (set Driver_Dir "S3Drivers") (set Driver_Name "CVision3D") (set Z_name zadd) (copy_monitor)
  359.  
  360.    (set Libs_Dir "cgxvideolib") (set Libs_Name "cgxvideo.library") (set CPU_name cpuadd) (copy_lib)
  361.    (set Libs_Dir "cgx3dvirgelib") (set Libs_Name "cgx3dvirgin.library") (set CPU_name "") (copy_lib)
  362.   )
  363. )
  364.  
  365.  
  366. (if (IN board 2)
  367.  ( (set Driver_Dir "S3Drivers") (set Driver_Name "CVision64") (set Z_name "") (copy_monitor) )
  368. )
  369.  
  370. (if (IN board 3) 
  371.  ( (set Driver_Dir "CLDrivers") (set Driver_Name "PicassoII") (set Z_name "") (copy_monitor) )
  372. )
  373.  
  374. (if (IN board 4) 
  375.  ( (set Driver_Dir "CLDrivers") (set Driver_Name "Spectrum") (set Z_name "") (copy_monitor) )
  376. )
  377.  
  378. (if (IN board 5) 
  379.  ( (set Driver_Dir "CLDrivers") (set Driver_Name "Piccolo") (set Z_name "") (copy_monitor) )
  380. )
  381.  
  382. (if (IN board 6) 
  383.  ( (set Driver_Dir "CLDrivers") (set Driver_Name "PiccoSD64") (set Z_name "") (copy_monitor) )
  384. )
  385.  
  386. (if (IN board 7) 
  387.  ( (set Driver_Dir "CLDrivers") (set Driver_Name "Inferno") (set Z_name "") (copy_monitor) )
  388. )
  389.  
  390. (if (IN board 8) 
  391.  (
  392.   (set error1 (run (tackon cgx_root "tools/ChkPIVResource")))   ; 0 <2, 5 >=2
  393.   (if (< error1 5) (message #updatep4flash))
  394.  
  395.   (set Driver_Dir "CLDrivers") (set Driver_Name "PicassoIV") (set Z_name "") (copy_monitor)
  396.  )
  397. )
  398.  
  399. (if (IN board 9)
  400.  ( (set Driver_Dir "SLDrivers") (set Driver_Name "RetinaZ3") (set Z_name "") (copy_monitor) )
  401. )
  402.  
  403. (if (IN board 10)
  404.  ( (set Driver_Dir "SLDrivers") (set Driver_Name "DraCoAltais") (set Z_name "") (copy_monitor) )
  405. )
  406.  
  407.  
  408. (if (IN board 11) 
  409.  (
  410.   (set Driver_Dir "TIDrivers") (set Driver_Name "BVisionPPC") (set Z_name "") (copy_monitor)
  411.   (set Libs_Dir "cgx3dravelib") (set Libs_Name "cgx3drave.library") (set CPU_name "") (copy_lib)
  412.  )
  413. )
  414.  
  415. (if (IN board 12)
  416.   ( (set Driver_Dir "CLDrivers") (set Driver_Name "Pixel64") (set Z_name "") (copy_monitor) )
  417. )
  418.  
  419. ;*******************************************************************
  420. ;  Copy Tools PROCEDURE
  421. ;*******************************************************************
  422. (procedure copy_tools
  423.   (set RootPatchFileName Tool_Name)
  424.   (set pch_file (tackon cgx_root (tackon Tool_Dir (cat Tool_Name ".pch"))))
  425.    (if (exists pch_file)
  426.      ( 
  427.       (set pch_in  (tackon (tackon (cat diskname ":") cd_root) (tackon Tool_Dir RootPatchFileName)) )
  428.       (set pch_out (tackon tempdir Tool_Name))   (spatch)
  429.       (set file_dir tempdir)
  430.      )
  431.  
  432.      (set file_dir (tackon cgx_root Tool_Dir))
  433.    )
  434.  
  435.   (if (exists (tackon file_dir Tool_Name))
  436.    (if (= (exists (tackon Where_Tool (cat Tool_Name ".info"))) 0)
  437.      (copyfiles (source (tackon file_dir Tool_Name)) (dest Where_Tool) (newname Tool_Name) (infos) (optional "nofail") ) 
  438.      (copyfiles (source (tackon file_dir Tool_Name)) (dest Where_Tool) (newname Tool_Name) (optional "nofail") ) 
  439.    )
  440.   )
  441. )
  442.  
  443. ;*********************************************************************************
  444. ;   Ask user to install Tools 
  445. ;*********************************************************************************
  446. (set toolpick 15)
  447.  
  448. ;;(if (= AGA 1) ( (set #cgxmode-todo #CGXModeNot4AGA) (set toolpick 2) ) )
  449.  
  450. (set WantedTools (askoptions (choices #cgxmode-todo #showcgxconfig #guide #commy)
  451.                       (prompt #todo-prompt)
  452.                       (help #todo-prompt)
  453.                       (default toolpick)
  454.           )
  455.  
  456.   (if (IN WantedTools 0) 
  457.     ( 
  458.       (set wheremode   (askdir (prompt #wheremode)
  459.                                (help   #wheremode)
  460.                            (default "SYS:Prefs")
  461.                )
  462.       )
  463.  
  464.     ((set Tool_Dir "CGXMode") (set Tool_Name "CGXMode") (set Where_Tool wheremode) (copy_tools))
  465.  
  466.       (if (= @language "deutsch")
  467.        (
  468.          (if (= (exists "Locale:Catalogs") 0) (makedir "sys:Locale/Catalogs") )
  469.          (if (= (exists (tackon "Locale:Catalogs" "deutsch")) 0) (makedir (tackon "sys:Locale/Catalogs" "deutsch")) )
  470.          (if (exists (tackon cgx_root "CGXMode/catalogs/deutsch/cgxmode.catalog"))
  471.            (copyfiles (source (tackon cgx_root "CGXMode/catalogs/deutsch/cgxmode.catalog")) (dest "sys:Locale/Catalogs/deutsch") )
  472.          )
  473.        )
  474.       )
  475.  
  476.  
  477.      (if (exists (tackon cgx_root (cat "prefs/presets/monitors/" "monitors.dat")))  
  478.        (copyfiles (source (tackon cgx_root (cat "prefs/presets/monitors/" "monitors.dat")))  (dest "sys:prefs/presets/monitors")) 
  479.       (if (exists (tackon (tackon (cat diskname ":") cd_root) (cat "prefs/presets/monitors/" "monitors.dat")))       
  480.         (copyfiles (source (tackon (tackon (cat diskname ":") cd_root) (cat "prefs/presets/monitors/" "monitors.dat")))  (dest "sys:Locale/Catalogs/deutsch")) 
  481.       )
  482.      )
  483.  
  484.      (set Libs_Dir "gtlayoutlib") (set Libs_Name "gtlayout.library") (set CPU_name "") (copy_lib)
  485.  
  486.     )
  487.   )
  488.  
  489.  
  490. (if (IN WantedTools 1) 
  491.   ( 
  492.     (set whereshowcgxconfig   (askdir (prompt #whereshowcgxconfig)
  493.                              (help   #whereshowcgxconfig)
  494.                          (default "SYS:Tools")
  495.              )
  496.     )
  497.  
  498.     (if (exists (tackon cgx_root "tools/showcgxconfig"))
  499.      (if (= (exists (tackon whereshowcgxconfig "showcgxconfig.info")) 0)
  500.       (copyfiles (source (tackon cgx_root "tools/showcgxconfig"))  (dest whereshowcgxconfig) (infos) (optional "nofail")) 
  501.       (copyfiles (source (tackon cgx_root "tools/showcgxconfig"))  (dest whereshowcgxconfig) (optional "nofail"))          
  502.      )
  503.     )
  504.  
  505.   )
  506. )
  507.  
  508. (if (IN WantedTools 2) 
  509.   ( 
  510.     (set wheredocs   (askdir (prompt #wheredocs)
  511.                              (help   #wheredocs)
  512.                          (default "HELP:")
  513.              )
  514.     )
  515.  
  516.     (if (= @language "deutsch") (set docname "CyberGraphX4_D.guide") (set docname "CyberGraphX4_E.guide"))
  517.  
  518.     (if (exists (tackon cgx_root (tackon "docs" docname)))
  519.      (if (= (exists (tackon wheredocs (cat docname ".info"))) 0)
  520.       (copyfiles (source (tackon cgx_root (tackon "docs" docname)))  (dest wheredocs) (newname "CyberGraphX4.guide") (infos) (optional "nofail")) 
  521.       (copyfiles (source (tackon cgx_root (tackon "docs" docname)))  (dest wheredocs) (newname "CyberGraphX4.guide") (optional "nofail"))          
  522.      )
  523.     )
  524.  
  525.    (textfile (dest "ENV:CyberGraphX/CGXHELPPATH") (append (cat "" wheredocs "") ) )
  526.    (copyfiles (source "ENV:CyberGraphX/CGXHELPPATH") (dest "ENVARC:CyberGraphX") ) 
  527.  
  528.   )
  529. )
  530.  
  531.  
  532. (if (IN WantedTools 3) 
  533.   ( 
  534.     (set wherecomm   (askdir (prompt #wherecomm)
  535.                              (help   #wherecomm)
  536.                          (default "SYS:Prefs")
  537.              )
  538.     )
  539.  
  540.  
  541.     ((set Tool_Dir "Tools/Commodities") (set Tool_Name "CyberGraphX") (set Where_Tool wherecomm) (copy_tools))
  542.  
  543.     (if (= @language "deutsch")
  544.      (
  545.        (if (= (exists "Locale:Catalogs") 0) (makedir "sys:Locale/Catalogs") )
  546.        (if (= (exists (tackon "Locale:Catalogs" "deutsch")) 0) (makedir (tackon "sys:Locale/Catalogs" "deutsch")) )
  547.  
  548.        (if (exists (tackon cgx_root "Tools/Commodities/catalogs/deutsch/cybergraphx.catalog"))
  549.          (copyfiles (source (tackon cgx_root "Tools/Commodities/catalogs/deutsch/cybergraphx.catalog")) (dest "sys:Locale/Catalogs/deutsch") )
  550.          (copyfiles (source (tackon (tackon (cat diskname ":") cd_root) "Tools/Commodities/catalogs/deutsch/cybergraphx.catalog"))  (dest "sys:Locale/Catalogs/deutsch"))        
  551.        )
  552.      )
  553.     )
  554.  
  555.     (set Libs_Dir "gtlayoutlib") (set Libs_Name "gtlayout.library") (set CPU_name "") (copy_lib)
  556.  
  557.  
  558.   )
  559. )
  560.  
  561. ;*******************************************************************
  562. ;  END
  563. ;*******************************************************************
  564. (if (> (exists ("c:multiview")) 0) (set #mpath "c:") )
  565. (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") )
  566.  
  567. (run (cat "run " #mpath "/multiview " (tackon cgx_root "Changes.txt")) )
  568. (run (cat "run delete " tempdir " all"))
  569.  
  570. (set @default-dest "sys:")
  571.  
  572. (set #done "Update Complete!")
  573. (if (= @language "deutsch") (set #done "Update fertig!") )
  574.  
  575. (exit #done)
  576.